
#include"string.h"
#include<string>
int main()
{
	MoYu::string s("hello world");
	cout << s.substr(1, 2) << endl;


	////MoYu::string s("hello world");
	////cout << s << endl;
	////MoYu::string s1(move("lllll"));
	////cout << s << endl;
	////cout << s1 << endl;

	////s1 = "this test";

	////MoYu::string s2(s1);
	////cout << s1 << endl;
	////cout << s2 << endl;

	//MoYu::string s3("hello world");
	//for (auto& e : s3)
	//	cout << e;
	//cout << endl;

	//MoYu::string s4(s3, 1, 4);
	//cout << s4 << endl;

	////MoYu::string::iterator it = s4.begin();
	////while (it != s4.end())
	////{
	////	cout << *it;
	////	++it;
	////}

	//MoYu::string s5(s4.begin(), s4.end());
	//cout << s5 << endl;

	//MoYu::string s6(10,'m');
	//cout << s6 << endl;

	//MoYu::string s7("123456789", 5);
	//cout << s7 << endl;

	//MoYu::string s8 = s7;
	//cout << s8 << endl;
	//s8.resize(10,'O');
	//cout << s8 << endl;

	//MoYu::string test("hello");
	//s8.insert(5, "hello" , 1,2);
	//cout << s8 << endl;
	//s8.insert(5, test);
	//cout << s8 << endl;

	//s8 += "eee";
	//cout << s8 << endl;
	//string s9 = "hello eee";
	//cout << s9.substr(1, 2) << endl;
	//cout << s8.substr(0, 2) << endl;
	//MoYu::string s9 = s8.substr(0, 2);
	//cout << s9 << endl;
}